package cn.webrx;

public class Ex4 {

    //try catch finally throws
    public static void main(String[] args) throws InterruptedException, NullPointerException, ArithmeticException {
        System.out.println("ok");
        Thread.sleep(1100);
        System.out.println("hello");

        try{
            //throw new MyExetption();
        }catch(Exception e){
            e.printStackTrace();
        }
    }


    public static void abc(String[] args) {
        System.out.println("ok");
        try {
            Thread.sleep(1100);
        } catch (InterruptedException e) {
            System.out.println("系统");
        }
        System.out.println("hello");
    }
}
